using System;
using System.CodeDom.Compiler;

namespace TouchSocket.Core;

/// <summary>
/// 使用源生成插件的调用。
/// </summary>
[AttributeUsage(AttributeTargets.Method)]
[GeneratedCode("TouchSocket.SourceGenerator", "2.1.10.0")]
internal class GeneratorPluginAttribute : Attribute
{
	public Type PluginType { get; }

	/// <summary>
	/// 使用源生成插件的调用。
	/// </summary>
	/// <param name="pluginType">插件名称，一般建议使用<see langword="typeof" />解决。</param>
	public GeneratorPluginAttribute(Type pluginType)
	{
		PluginType = pluginType;
	}
}
